package com.ls.fw.mvc.struts.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import ognl.OgnlRuntime;

/**
 * 解决Struts2的安全问题
 * @author Defender
 * 2013-3-19
 */
public class OgnlSecurityListener implements ServletContextListener {
    
	public void contextDestroyed(ServletContextEvent arg0) {

	}

	public void contextInitialized(ServletContextEvent sce) {
		OgnlRuntime.setSecurityManager(null);
	}

}
